package com.dj.dormitory.service.impl;

import com.dj.dormitory.entity.Dormitory;
import com.dj.dormitory.mapper.DormitoryMapper;
import com.dj.dormitory.service.DormitoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author DJ同学
 * @since 2021-01-24
 */
@Service
public class DormitoryServiceImpl extends ServiceImpl<DormitoryMapper, Dormitory> implements DormitoryService {

    @Override
    public Integer getRoomSize(Integer dormitoryId) {
        Integer size = this.baseMapper.getRoomSize(dormitoryId);
        return size;
    }
}
